libacpi: widen TPM detection
authorJason Andryuk <jandryuk@gmail.com>
Tue, 16 Jun 2020 08:31:08 +0000 (10:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 16 Jun 2020 08:31:08 +0000 (10:31 +0200)
commitd3db7e043cddd7e939195e014241ce2c5d436179
treee0a78f9f7affed53f7172100a5ee3902c908a1b1
parent05f488e418db0498dc2b7775874bd6957afd3a05
libacpi: widen TPM detection

The hardcoded tpm_signature is too restrictive to detect many TPMs.  For
instance, it doesn't accept a QEMU emulated TPM (VID 0x1014 DID 0x0001).
Make the TPM detection match that in rombios which accepts a wider
range.

With this change, the TPM's TCPA ACPI table is generated and the guest
OS can automatically load the tpm_tis driver.  It also allows seabios to
detect and use the TPM.  However, seabios skips some TPM initialization
when running under Xen, so it will not populate any PCRs unless modified
to run the initialization under Xen.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
tools/libacpi/build.c